package cn.promonkey.api.contract.entity;import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import cn.promonkey.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/** @author ninelock-ai */
@Data
@TableName("contract")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Contract extends BaseEntity { 
  /** 合约ID */
  @TableId(value = "contract_id", type = IdType.AUTO)
  @TableField(value = "contract_id")
  private Integer contractId;
  /** 企业ID */
  @TableField(value = "business_id")
  private Integer businessId;
  /** 合约名称 */
  @TableField(value = "contract_name")
  private String contractName;
  /** 签约用户ID */
  @TableField(value = "user_id")
  private Integer userId;
  /** 签署时间 */
  @TableField(value = "signing_date")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private java.util.Date signingDate;
  /** 合约开始日期 */
  @TableField(value = "start_time")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private java.util.Date startTime;
  /** 合约结束日期 */
  @TableField(value = "end_time")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private java.util.Date endTime;
  /** 用户数量 */
  @TableField(value = "user_num")
  private Integer userNum;
  /** 系统数量 */
  @TableField(value = "system_num")
  private Integer systemNum;
  /** 状态 */
  @TableField(value = "status")
  private Integer status;
  /** 支付方式 */
  @TableField(value = "pay_type")
  private Integer payType;
}
